Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[circt-test] fix lit config for circt-bmc #7884

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unlsycn
Copy link

@unlsycn unlsycn commented Nov 24, 2024

#7857 introduces a Python script to test circt-bmc, but there are two problems:

  1. We need to add the script to the substitution list in lit.cfg.py so that lit can correctly substitute the path in the test.
  2. The script invokes circt-opt but the executable is not in the PATH variable causing python cannot find it. This PR simply adds circt_tool_dir to PATH to resolve it, but I think a better way is to get rid of the python script and allow lit to substitute the path.

@unlsycn
Copy link
Author

unlsycn commented Nov 24, 2024

cc @fabianschuiki

@unlsycn
Copy link
Author

unlsycn commented Nov 25, 2024

One confusing point is that the Github CI can pass this test without path substitution and the additional PATH variable, which seems to be an existing CIRCT binary path in the PATH.
https://github.com/llvm/circt/actions/runs/11998261862/job/33447711728 (this is the CI job for #7886)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant